package dao.auth;

import java.util.List;
import java.util.Map;

import model.auth.Authorities;
import model.auth.Roles;
import model.auth.RolesAuthorities;
import core.base.page.Page;
import core.base.page.PageRequest;

public interface RolesAuthoritiesDao {

	int insert(RolesAuthorities model);

	RolesAuthorities getById(Long id);

	int deleteById(Long id);
	
	List<Roles> getRolesByAuthCode(String authCode);
	
	List<Authorities> getAuthoritiesByRoleId(Long roleId);
	
	Page<Roles> queryRolesForPage(PageRequest<Map> pageReq);
	
	Page<Authorities> queryAuthoritiesForPage(PageRequest<Map> pageReq);
}
